<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
        html {
            background-color: honeydew;
        }
      body {
          border:5px dotted black;

        background-color: greenyellow;
        width: 50%;
        max-width: 800px;
        min-width: 500px;
        margin: 0 auto;
      }

      div {
        background-color: gray;
        border:5px dotted black;
        background-clip:content-box;
        margin: 10px; 
      }
    </style>
  </head>
  <body>
    <div>
        sdf
    </div>

  </body>
</html>
